package com.educate.book.rpc.api;

import com.educate.book.model.bo.BookCatalogueBO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface BookCatalogueService {

	String create(BookCatalogueBO bo);

    void delete(BookCatalogueBO bo);

    void delete(String bookCatalogueId);

    BookCatalogueBO detail(String bookCatalogueId);

    BookCatalogueBO detail(BookCatalogueBO bo);

    void update(BookCatalogueBO bo);

    Page<BookCatalogueBO> query(BookCatalogueBO bo, PageRequest pageRequest);

    List<BookCatalogueBO> list(BookCatalogueBO bo);
}
